﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcWebRole1.Models.RegisterModel>" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">登録 </asp:Content>
<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>アカウントの新規作成</h2>
    <p>新しいアカウントを作成するには、次のフォームを使用します。 </p>
    <p>パスワードは最低 <%: ViewData["PasswordLength"] %> 文字以上であることが必要です。 </p>
    <% using (Html.BeginForm(null))
       {%>
    <%:Html.ValidationSummary(true, "アカウントの作成に失敗しました。エラーを修正し、再試行してください。")%>
    <div>
        <fieldset><legend>アカウント情報</legend>
            <div class="editor-label">
                <%:Html.LabelFor(m => m.ZipCode)%>
            </div>
            <div class="editor-field">
                <%:Html.TextBoxFor(m => m.ZipCode)%>
                <%:Html.ValidationMessageFor(m => m.ZipCode)%>
            </div>
            <div class="editor-label">
                <%:Html.LabelFor(m => m.NickName)%>
            </div>
            <div class="editor-field">
                <%:Html.TextBoxFor(m => m.NickName)%>
                <%:Html.ValidationMessageFor(m => m.NickName)%>
            </div>
            <div class="editor-label">
                <%:Html.LabelFor(m => m.FamilyName)%>
            </div>
            <div class="editor-field">
                <%:Html.TextBoxFor(m => m.FamilyName)%>
                <%:Html.ValidationMessageFor(m => m.FamilyName)%>
            </div>
            <div class="editor-label">
                <%:Html.LabelFor(m => m.GivenName)%>
            </div>
            <div class="editor-field">
                <%:Html.TextBoxFor(m => m.GivenName)%>
                <%:Html.ValidationMessageFor(m => m.GivenName)%>
            </div>
            <div class="editor-label">
                <%:Html.LabelFor(m => m.BirthDate)%>
            </div>
            <div class="editor-field">
                <%:Html.TextBoxFor(m => m.BirthDate)%>
                <%:Html.ValidationMessageFor(m => m.BirthDate)%>
            </div>
            <div class="editor-label">
                <%:Html.LabelFor(m => m.Email)%>
            </div>
            <div class="editor-field">
                <%:Html.TextBoxFor(m => m.Email)%>
                <%:Html.ValidationMessageFor(m => m.Email)%>
            </div>
            <div class="editor-label">
                <%:Html.LabelFor(m => m.Password)%>
            </div>
            <div class="editor-field">
                <%:Html.PasswordFor(m => m.Password)%>
                <%:Html.ValidationMessageFor(m => m.Password)%>
            </div>
            <div class="editor-label">
                <%:Html.LabelFor(m => m.ConfirmPassword)%>
            </div>
            <div class="editor-field">
                <%:Html.PasswordFor(m => m.ConfirmPassword)%>
                <%:Html.ValidationMessageFor(m => m.ConfirmPassword)%>
            </div>
            <p>
                <input type="submit" value="登録" />
            </p>
        </fieldset>
    </div>
	<%}%>
</asp:Content>
